//
//  ipersistAppDelegate.m
//  ipersist
//
//  Created by Dan Lorenc on 4/13/09.
//  Copyright MIT 2009. All rights reserved.
//

#import "ipersistAppDelegate.h"
#import "Model.h"
#import "Text.h"

@implementation ipersistAppDelegate

@synthesize window;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    // Override point for customization after application launch
	Text *testText1 = [[Text alloc] init];
	[testText1.data setObject:@"Hello World" forKey:@"field"];
	
	[testText1 save];
	NSLog(@"%d",testText1.dbid);
	
	Text *testText2 = [[Text alloc] init];
	[testText2.data setObject:@"Hello World" forKey:@"field"];
	
	[testText2 save];
	NSLog(@"%d",testText2.dbid);
	
	
    [window makeKeyAndVisible];
}


- (void)dealloc {
    [window release];
    [super dealloc];
}


@end
